home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 90 / CD Actual 90.iso / Software3D / K-3D / k3d-0.4.2.1 / shaders / k3d_distant_shadow.sl < prev    next >
Encoding:
Text File  |  2004-07-23  |  453 b   |  24 lines

  1. light k3d_distant_shadow(
  2.     float  intensity=1 ;
  3.     color  lightcolor=1 ;
  4.     point from = point "shader" (0,0,0) ;
  5.     point to   = point "shader" (0,0,1) ;
  6.     string shadowname="";
  7.     float  samples=16;
  8.     float  blur=.01;
  9.     float  bias=.01;
  10.     )
  11.     {
  12.         solar( to - from, 0.0 ) {
  13.             Cl = intensity * lightcolor;
  14.  
  15.             if (shadowname != "") {
  16.                 Cl *= 1 - shadow(shadowname, Ps, "samples", samples,
  17.                     "blur", blur, "bias", bias);
  18.                 }
  19.  
  20.             }
  21.     }
  22.  
  23.  
  24.